package com.firebird.app.fejpsl.mvp.presenter

import com.firebird.app.fejpsl.ext.ss
import com.firebird.app.fejpsl.mvp.contract.FollowContract
import com.firebird.fejpslan.mvp.model.FollowModel

/**
 * Created by firebird on 2018/4/21.
 */
class FollowPresenter : CommonPresenter<FollowContract.Model, FollowContract.View>(), FollowContract.Presenter {

    override fun createModel(): FollowContract.Model? = FollowModel()

    override fun requestMyFollowList() {
        mModel?.requestMyFollowList()?.ss(mModel, mView, false) {
            mView?.setMyFollowList(it.data)
        }
    }
    override fun requestFollowMeList() {
        mModel?.requestFollowMeList()?.ss(mModel, mView, false) {
            mView?.setFollowMeList(it.data)
        }
    }
    override fun requestBlockPeopleList() {
        mModel?.requestBlockPeopleList()?.ss(mModel, mView, false) {
            mView?.setBlockPeopleList(it.data)
        }
    }


}